import { IsNotEmpty, IsString, IsOptional, IsNumber } from 'class-validator';

export class CreateChildDto {
    @IsNotEmpty({ message: '身高不能为空' })
    @IsNumber()
    height: number;

    @IsNotEmpty({ message: '体重不能为空' })
    @IsNumber()
    weight: number;

    @IsNotEmpty({ message: '头围不能为空' })
    @IsNumber()
    headCircumference: number;

    @IsOptional()
    @IsString()
    doctorAdvice?: string;

    @IsOptional()
    @IsString()
    recordedAt: string;

    id?: number;
}